<template>
  <div :class="['filter-box',showFilter?'showFilter':'']" @click="closeMyself">
    <div class="panel-box" @click.stop>
      <slot></slot>
    </div>
    
  </div>
</template>

<script>
export default {
  props: {
    treeList: {
      type: Array
    },
    showFilter: {
      type:Boolean
    }
  },
  data() {
    return {  
    };
  },
  watch: {
     
  },
  mounted() {
    
  },
  beforeDestroy() {
  },
  methods: { 
    closeMyself(){
        this.$parent.filterShow();
    }
  }
};
</script>

<style lang="less" scoped> 
.filter-box{
    position: fixed;
    left: 0;
    top: -100%;
    width: 100vw;
    height: 100vh;
    z-index: 99;
    background: rgba(0,0,0,.15);
    transition: all 0.6s;
}
.showFilter{
    top: 0;
}
.panel-box{
  display: flex; 
  min-height: 50%;
  max-height: 80%;
  background: #fff;
}
</style>